<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.13/dayjs.min.js"></script>
</head>
<body>

    <script>
        // 之前
        console.log(new Date());
        
            console.log(dayjs().format());
            console.log(dayjs().format('YYYY/MM/DD HH:mm:ss'));            
            
    </script>
    
</body>
</html>